package structural.adapter;

/**
 * @Author: 蔡翔
 * @Date: 2019/12/9 15:31
 * @Version 1.0
 */
public class PowerAdapter implements DC5{
    private AC220 ac220 = new AC220();

    public int outputDC5V() {
        int adapterInput = ac220.outputAC220V();

        //变压器
        int adapterOutpter = adapterInput/44;
        System.out.println("变压器输入AC："+adapterInput+"V,输出 DC ："+adapterOutpter+"V");
        return adapterOutpter;
    }
}
